<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>class RDoc::AnyMethod - rdoc: Ruby Standard Library Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="class">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
<div id="parent-class-section" class="nav-section">
  <h3>Parent</h3>

  <p class="link"><a href="MethodAttr.html">RDoc::MethodAttr</a>
</div>

        
<div id="includes-section" class="nav-section">
  <h3>Included Modules</h3>

  <ul class="link-list">
    <li><a class="include" href="TokenStream.html">RDoc::TokenStream</a>
  </ul>
</div>

        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li class="calls-super" ><a href="#method-c-new">::new</a>
    <li ><a href="#method-i-_call_seq">#_call_seq</a>
    <li ><a href="#method-i-add_alias">#add_alias</a>
    <li ><a href="#method-i-aref_prefix">#aref_prefix</a>
    <li ><a href="#method-i-arglists">#arglists</a>
    <li ><a href="#method-i-call_seq">#call_seq</a>
    <li ><a href="#method-i-call_seq-3D">#call_seq=</a>
    <li ><a href="#method-i-deduplicate_call_seq">#deduplicate_call_seq</a>
    <li ><a href="#method-i-has_call_seq-3F">#has_call_seq?</a>
    <li ><a href="#method-i-marshal_dump">#marshal_dump</a>
    <li ><a href="#method-i-marshal_load">#marshal_load</a>
    <li ><a href="#method-i-name">#name</a>
    <li ><a href="#method-i-param_list">#param_list</a>
    <li ><a href="#method-i-param_seq">#param_seq</a>
    <li ><a href="#method-i-skip_description-3F">#skip_description?</a>
    <li class="calls-super" ><a href="#method-i-store-3D">#store=</a>
    <li ><a href="#method-i-superclass_method">#superclass_method</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="class-RDoc::AnyMethod">
    <h1 id="class-RDoc::AnyMethod" class="class">
      class RDoc::AnyMethod
    </h1>

    <section class="description">
    
<p><a href="AnyMethod.html"><code>AnyMethod</code></a> is the base class for objects representing methods</p>

    </section>

      <section id="5Buntitled-5D" class="documentation-section">



        <section class="attribute-method-details" class="method-section">
        <header>
        <h3>Attributes</h3>
        </header>

          <div id="attribute-i-c_function" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">c_function</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>The C function that implements this method (if it was defined in a C file)</p>
              </div>
            </div>
          <div id="attribute-i-calls_super" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">calls_super</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>If true this method uses <code>super</code> to call a superclass version</p>
              </div>
            </div>
          <div id="attribute-i-dont_rename_initialize" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">dont_rename_initialize</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>Don’t rename #initialize to ::new</p>
              </div>
            </div>
          <div id="attribute-i-params" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">params</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>Parameters for this method</p>
              </div>
            </div>
          <div id="attribute-i-section_title" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">section_title</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              <p>The section title of the method (if defined in a C file via <code>:category:</code>)</p>
              </div>
            </div>
            </section>


                <section id="public-class-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Class Methods</h3>
                </header>

                  <div id="method-c-new" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">new</span><span
                                class="method-args">(text, name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Creates a new <a href="AnyMethod.html"><code>AnyMethod</code></a> with a token stream <code>text</code> and <code>name</code></p>
                                <div class="method-calls-super">
                                  Calls superclass method
                                  <a href="MethodAttr.html#method-c-new"><code>RDoc::MethodAttr::new</code></a>
                              </div>

                              <div class="method-source-code" id="new-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 46</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span> <span class="ruby-identifier">text</span>, <span class="ruby-identifier">name</span>
  <span class="ruby-keyword">super</span>

  <span class="ruby-ivar">@c_function</span> = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@dont_rename_initialize</span> = <span class="ruby-keyword">false</span>
  <span class="ruby-ivar">@token_stream</span> = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@calls_super</span> = <span class="ruby-keyword">false</span>
  <span class="ruby-ivar">@superclass_method</span> = <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Instance Methods</h3>
                </header>

                  <div id="method-i-add_alias" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">add_alias</span><span
                                class="method-args">(an_alias, context = nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Adds <code>an_alias</code> as an alias for this method in <code>context</code>.</p>

                              <div class="method-source-code" id="add_alias-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 59</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_alias</span> <span class="ruby-identifier">an_alias</span>, <span class="ruby-identifier">context</span> = <span class="ruby-keyword">nil</span>
  <span class="ruby-identifier">method</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">an_alias</span>.<span class="ruby-identifier">text</span>, <span class="ruby-identifier">an_alias</span>.<span class="ruby-identifier">new_name</span>

  <span class="ruby-identifier">method</span>.<span class="ruby-identifier">record_location</span> <span class="ruby-identifier">an_alias</span>.<span class="ruby-identifier">file</span>
  <span class="ruby-identifier">method</span>.<span class="ruby-identifier">singleton</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">singleton</span>
  <span class="ruby-identifier">method</span>.<span class="ruby-identifier">params</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">params</span>
  <span class="ruby-identifier">method</span>.<span class="ruby-identifier">visibility</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">visibility</span>
  <span class="ruby-identifier">method</span>.<span class="ruby-identifier">comment</span> = <span class="ruby-identifier">an_alias</span>.<span class="ruby-identifier">comment</span>
  <span class="ruby-identifier">method</span>.<span class="ruby-identifier">is_alias_for</span> = <span class="ruby-keyword">self</span>
  <span class="ruby-ivar">@aliases</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">method</span>
  <span class="ruby-identifier">context</span>.<span class="ruby-identifier">add_method</span> <span class="ruby-identifier">method</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>
  <span class="ruby-identifier">method</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-aref_prefix" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">aref_prefix</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Prefix for <code>aref</code> is ‘method’.</p>

                              <div class="method-source-code" id="aref_prefix-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 76</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">aref_prefix</span>
  <span class="ruby-string">&#39;method&#39;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-arglists" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">arglists</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>The <a href="AnyMethod.html#method-i-call_seq"><code>call_seq</code></a> or the <a href="AnyMethod.html#method-i-param_seq"><code>param_seq</code></a> with method name, if there is no call_seq.</p>

<p>Use this for displaying a method’s argument lists.</p>

                              <div class="method-source-code" id="arglists-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 85</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">arglists</span>
  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@call_seq</span> <span class="ruby-keyword">then</span>
    <span class="ruby-ivar">@call_seq</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-ivar">@params</span> <span class="ruby-keyword">then</span>
    <span class="ruby-node">&quot;#{name}#{param_seq}&quot;</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-call_seq" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">call_seq</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Different ways to call this method</p>

                              <div class="method-source-code" id="call_seq-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 96</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">call_seq</span>
  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">call_seq</span> = <span class="ruby-identifier">_call_seq</span>
    <span class="ruby-identifier">call_seq</span> = <span class="ruby-identifier">is_alias_for</span>.<span class="ruby-identifier">_call_seq</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">is_alias_for</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">call_seq</span>

  <span class="ruby-identifier">deduplicate_call_seq</span>(<span class="ruby-identifier">call_seq</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-call_seq-3D" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">call_seq=</span><span
                                class="method-args">(call_seq)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Sets the different ways you can call this method.  If an empty <code>call_seq</code> is given nil is assumed.</p>

<p>See also <a href="AnyMethod.html#method-i-param_seq"><code>param_seq</code></a></p>

                              <div class="method-source-code" id="call_seq-3D-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 112</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">call_seq=</span> <span class="ruby-identifier">call_seq</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">call_seq</span>.<span class="ruby-identifier">empty?</span>

  <span class="ruby-ivar">@call_seq</span> = <span class="ruby-identifier">call_seq</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-has_call_seq-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">has_call_seq?</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Whether the method has a call-seq.</p>

                              <div class="method-source-code" id="has_call_seq-3F-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 121</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">has_call_seq?</span>
  <span class="ruby-operator">!</span><span class="ruby-operator">!</span>(<span class="ruby-ivar">@call_seq</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">is_alias_for</span>&amp;.<span class="ruby-identifier">_call_seq</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-marshal_dump" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">marshal_dump</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Dumps this <a href="AnyMethod.html"><code>AnyMethod</code></a> for use by ri.  See also <a href="AnyMethod.html#method-i-marshal_load"><code>marshal_load</code></a></p>

                              <div class="method-source-code" id="marshal_dump-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 147</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">marshal_dump</span>
  <span class="ruby-identifier">aliases</span> = <span class="ruby-ivar">@aliases</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
    [<span class="ruby-identifier">a</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">a</span>.<span class="ruby-identifier">comment</span>)]
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">is_alias_for</span> = [
    <span class="ruby-ivar">@is_alias_for</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">full_name</span>,
    <span class="ruby-ivar">@is_alias_for</span>.<span class="ruby-identifier">singleton</span>,
    <span class="ruby-ivar">@is_alias_for</span>.<span class="ruby-identifier">name</span>
  ] <span class="ruby-keyword">if</span> <span class="ruby-ivar">@is_alias_for</span>

  [ <span class="ruby-constant">MARSHAL_VERSION</span>,
    <span class="ruby-ivar">@name</span>,
    <span class="ruby-identifier">full_name</span>,
    <span class="ruby-ivar">@singleton</span>,
    <span class="ruby-ivar">@visibility</span>,
    <span class="ruby-identifier">parse</span>(<span class="ruby-ivar">@comment</span>),
    <span class="ruby-ivar">@call_seq</span>,
    <span class="ruby-ivar">@block_params</span>,
    <span class="ruby-identifier">aliases</span>,
    <span class="ruby-ivar">@params</span>,
    <span class="ruby-ivar">@file</span>.<span class="ruby-identifier">relative_name</span>,
    <span class="ruby-ivar">@calls_super</span>,
    <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">name</span>,
    <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">class</span>,
    <span class="ruby-ivar">@section</span>.<span class="ruby-identifier">title</span>,
    <span class="ruby-identifier">is_alias_for</span>,
  ]
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-marshal_load" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">marshal_load</span><span
                                class="method-args">(array)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Loads this <a href="AnyMethod.html"><code>AnyMethod</code></a> from <code>array</code>.  For a loaded <a href="AnyMethod.html"><code>AnyMethod</code></a> the following methods will return cached values:</p>
<ul><li>
<p><a href="MethodAttr.html#method-i-full_name"><code>full_name</code></a></p>
</li><li>
<p><a href="MethodAttr.html#method-i-parent_name"><code>parent_name</code></a></p>
</li></ul>

                              <div class="method-source-code" id="marshal_load-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 184</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">marshal_load</span> <span class="ruby-identifier">array</span>
  <span class="ruby-identifier">initialize_visibility</span>

  <span class="ruby-ivar">@dont_rename_initialize</span> = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@token_stream</span>           = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@aliases</span>                = []
  <span class="ruby-ivar">@parent</span>                 = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@parent_name</span>            = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@parent_class</span>           = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@section</span>                = <span class="ruby-keyword">nil</span>
  <span class="ruby-ivar">@file</span>                   = <span class="ruby-keyword">nil</span>

  <span class="ruby-identifier">version</span>        = <span class="ruby-identifier">array</span>[<span class="ruby-value">0</span>]
  <span class="ruby-ivar">@name</span>          = <span class="ruby-identifier">array</span>[<span class="ruby-value">1</span>]
  <span class="ruby-ivar">@full_name</span>     = <span class="ruby-identifier">array</span>[<span class="ruby-value">2</span>]
  <span class="ruby-ivar">@singleton</span>     = <span class="ruby-identifier">array</span>[<span class="ruby-value">3</span>]
  <span class="ruby-ivar">@visibility</span>    = <span class="ruby-identifier">array</span>[<span class="ruby-value">4</span>]
  <span class="ruby-ivar">@comment</span>       = <span class="ruby-identifier">array</span>[<span class="ruby-value">5</span>]
  <span class="ruby-ivar">@call_seq</span>      = <span class="ruby-identifier">array</span>[<span class="ruby-value">6</span>]
  <span class="ruby-ivar">@block_params</span>  = <span class="ruby-identifier">array</span>[<span class="ruby-value">7</span>]
  <span class="ruby-comment">#                      8 handled below</span>
  <span class="ruby-ivar">@params</span>        = <span class="ruby-identifier">array</span>[<span class="ruby-value">9</span>]
  <span class="ruby-comment">#                      10 handled below</span>
  <span class="ruby-ivar">@calls_super</span>   = <span class="ruby-identifier">array</span>[<span class="ruby-value">11</span>]
  <span class="ruby-ivar">@parent_name</span>   = <span class="ruby-identifier">array</span>[<span class="ruby-value">12</span>]
  <span class="ruby-ivar">@parent_title</span>  = <span class="ruby-identifier">array</span>[<span class="ruby-value">13</span>]
  <span class="ruby-ivar">@section_title</span> = <span class="ruby-identifier">array</span>[<span class="ruby-value">14</span>]
  <span class="ruby-ivar">@is_alias_for</span>  = <span class="ruby-identifier">array</span>[<span class="ruby-value">15</span>]

  <span class="ruby-identifier">array</span>[<span class="ruby-value">8</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">new_name</span>, <span class="ruby-identifier">comment</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">add_alias</span> <span class="ruby-constant">RDoc</span><span class="ruby-operator">::</span><span class="ruby-constant">Alias</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">nil</span>, <span class="ruby-ivar">@name</span>, <span class="ruby-identifier">new_name</span>, <span class="ruby-identifier">comment</span>, <span class="ruby-ivar">@singleton</span>)
  <span class="ruby-keyword">end</span>

  <span class="ruby-ivar">@parent_name</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@full_name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/#/</span> <span class="ruby-keyword">then</span>
                     <span class="ruby-node">$`</span>
                   <span class="ruby-keyword">else</span>
                     <span class="ruby-identifier">name</span> = <span class="ruby-ivar">@full_name</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;::&#39;</span>)
                     <span class="ruby-identifier">name</span>.<span class="ruby-identifier">pop</span>
                     <span class="ruby-identifier">name</span>.<span class="ruby-identifier">join</span> <span class="ruby-string">&#39;::&#39;</span>
                   <span class="ruby-keyword">end</span>

  <span class="ruby-ivar">@file</span> = <span class="ruby-constant">RDoc</span><span class="ruby-operator">::</span><span class="ruby-constant">TopLevel</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">array</span>[<span class="ruby-value">10</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">version</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-name" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">name</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Method name</p>

<p>If the method has no assigned name, it extracts it from <a href="AnyMethod.html#method-i-call_seq"><code>call_seq</code></a>.</p>

                              <div class="method-source-code" id="name-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 233</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">name</span>
  <span class="ruby-keyword">return</span> <span class="ruby-ivar">@name</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@name</span>

  <span class="ruby-ivar">@name</span> =
    <span class="ruby-ivar">@call_seq</span>[<span class="ruby-regexp">/^.*?\.(\w+)/</span>, <span class="ruby-value">1</span>] <span class="ruby-operator">||</span>
    <span class="ruby-ivar">@call_seq</span>[<span class="ruby-regexp">/^.*?(\w+)/</span>, <span class="ruby-value">1</span>] <span class="ruby-operator">||</span>
    <span class="ruby-ivar">@call_seq</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@call_seq</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-param_list" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">param_list</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>A list of this method’s method and yield parameters.  <code>call-seq</code> params are preferred over parsed method and block params.</p>

                              <div class="method-source-code" id="param_list-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 246</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">param_list</span>
  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@call_seq</span> <span class="ruby-keyword">then</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-ivar">@call_seq</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;\n&quot;</span>).<span class="ruby-identifier">last</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/.*?\((.*)\)/</span>, <span class="ruby-string">&#39;\1&#39;</span>)
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/(\{|do)\s*\|([^|]*)\|.*/</span>, <span class="ruby-string">&#39;,\2&#39;</span>)
  <span class="ruby-keyword">elsif</span> <span class="ruby-ivar">@params</span> <span class="ruby-keyword">then</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/\((.*)\)/</span>, <span class="ruby-string">&#39;\1&#39;</span>)

    <span class="ruby-identifier">params</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;,#{@block_params}&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@block_params</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-ivar">@block_params</span> <span class="ruby-keyword">then</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-ivar">@block_params</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-keyword">return</span> []
  <span class="ruby-keyword">end</span>

  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@block_params</span> <span class="ruby-keyword">then</span>
    <span class="ruby-comment"># If this method has explicit block parameters, remove any explicit</span>
    <span class="ruby-comment"># &amp;block</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/,?\s*&amp;\w+/</span>, <span class="ruby-string">&#39;&#39;</span>)
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/\&amp;(\w+)/</span>, <span class="ruby-string">&#39;\1&#39;</span>)
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/\s+/</span>, <span class="ruby-string">&#39;&#39;</span>).<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;,&#39;</span>).<span class="ruby-identifier">reject</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:empty?</span>)

  <span class="ruby-identifier">params</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">param</span><span class="ruby-operator">|</span> <span class="ruby-identifier">param</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/=.*/</span>, <span class="ruby-string">&#39;&#39;</span>) }
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-param_seq" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">param_seq</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Pretty parameter list for this method.  If the method’s parameters were given by <code>call-seq</code> it is preferred over the parsed values.</p>

                              <div class="method-source-code" id="param_seq-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 278</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">param_seq</span>
  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@call_seq</span> <span class="ruby-keyword">then</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-ivar">@call_seq</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;\n&quot;</span>).<span class="ruby-identifier">last</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/[^( ]+/</span>, <span class="ruby-string">&#39;&#39;</span>)
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/(\|[^|]+\|)\s*\.\.\.\s*(end|\})/</span>, <span class="ruby-string">&#39;\1 \2&#39;</span>)
  <span class="ruby-keyword">elsif</span> <span class="ruby-ivar">@params</span> <span class="ruby-keyword">then</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/\s*\#.*/</span>, <span class="ruby-string">&#39;&#39;</span>)
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">tr_s</span>(<span class="ruby-string">&quot;\n &quot;</span>, <span class="ruby-string">&quot; &quot;</span>)
    <span class="ruby-identifier">params</span> = <span class="ruby-node">&quot;(#{params})&quot;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?(</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-string">&#39;&#39;</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@block_params</span> <span class="ruby-keyword">then</span>
    <span class="ruby-comment"># If this method has explicit block parameters, remove any explicit</span>
    <span class="ruby-comment"># &amp;block</span>
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/,?\s*&amp;\w+/</span>, <span class="ruby-string">&#39;&#39;</span>)

    <span class="ruby-identifier">block</span> = <span class="ruby-ivar">@block_params</span>.<span class="ruby-identifier">tr_s</span>(<span class="ruby-string">&quot;\n &quot;</span>, <span class="ruby-string">&quot; &quot;</span>)
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">block</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?(</span>
      <span class="ruby-identifier">block</span> = <span class="ruby-identifier">block</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/^\(/</span>, <span class="ruby-string">&#39;&#39;</span>).<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/\)/</span>, <span class="ruby-string">&#39;&#39;</span>)
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">params</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; { |#{block}| ... }&quot;</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">params</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-skip_description-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">skip_description?</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Whether to skip the method description, true for methods that have aliases with a call-seq that doesn’t include the method name.</p>

                              <div class="method-source-code" id="skip_description-3F-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 310</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">skip_description?</span>
  <span class="ruby-identifier">has_call_seq?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">call_seq</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-operator">!</span>(<span class="ruby-identifier">is_alias_for</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">aliases</span>.<span class="ruby-identifier">empty?</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-store-3D" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">store=</span><span
                                class="method-args">(store)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Sets the store for this method and its referenced code objects.</p>
                                <div class="method-calls-super">
                                  Calls superclass method
                                  <a href="MethodAttr.html#method-i-store-3D"><code>RDoc::MethodAttr#store=</code></a>
                              </div>

                              <div class="method-source-code" id="store-3D-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 317</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">store=</span> <span class="ruby-identifier">store</span>
  <span class="ruby-keyword">super</span>

  <span class="ruby-ivar">@file</span> = <span class="ruby-ivar">@store</span>.<span class="ruby-identifier">add_file</span> <span class="ruby-ivar">@file</span>.<span class="ruby-identifier">full_name</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@file</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-superclass_method" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">superclass_method</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>For methods that <code>super</code>, find the superclass method that would be called.</p>

                              <div class="method-source-code" id="superclass_method-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 326</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">superclass_method</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@calls_super</span>
  <span class="ruby-keyword">return</span> <span class="ruby-ivar">@superclass_method</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@superclass_method</span>

  <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">each_ancestor</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ancestor</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">method</span> = <span class="ruby-identifier">ancestor</span>.<span class="ruby-identifier">method_list</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@name</span> } <span class="ruby-keyword">then</span>
      <span class="ruby-ivar">@superclass_method</span> = <span class="ruby-identifier">method</span>
      <span class="ruby-keyword">break</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-ivar">@superclass_method</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="protected-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Protected Instance Methods</h3>
                </header>

                  <div id="method-i-_call_seq" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">_call_seq</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p><a href="AnyMethod.html#method-i-call_seq"><code>call_seq</code></a> without deduplication and alias lookup.</p>

                              <div class="method-source-code" id="_call_seq-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 345</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">_call_seq</span>
  <span class="ruby-ivar">@call_seq</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-ivar">@call_seq</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@call_seq</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="private-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Private Instance Methods</h3>
                </header>

                  <div id="method-i-deduplicate_call_seq" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">deduplicate_call_seq</span><span
                                class="method-args">(call_seq)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p><a href="AnyMethod.html#method-i-call_seq"><code>call_seq</code></a> with alias examples information removed, if this method is an alias method.</p>

                              <div class="method-source-code" id="deduplicate_call_seq-source">
            <pre><span class="ruby-comment"># File rdoc/any_method.rb, line 355</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">deduplicate_call_seq</span>(<span class="ruby-identifier">call_seq</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">call_seq</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">is_alias_for</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">aliases</span>.<span class="ruby-identifier">empty?</span>

  <span class="ruby-identifier">method_name</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">name</span>
  <span class="ruby-identifier">method_name</span> = <span class="ruby-identifier">method_name</span>[<span class="ruby-value">0</span>, <span class="ruby-value">1</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">method_name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\A\[/</span>

  <span class="ruby-identifier">entries</span> = <span class="ruby-identifier">call_seq</span>.<span class="ruby-identifier">split</span> <span class="ruby-string">&quot;\n&quot;</span>

  <span class="ruby-identifier">ignore</span> = <span class="ruby-identifier">aliases</span>.<span class="ruby-identifier">map</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:name</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">is_alias_for</span>
    <span class="ruby-identifier">ignore</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">is_alias_for</span>.<span class="ruby-identifier">name</span>
    <span class="ruby-identifier">ignore</span>.<span class="ruby-identifier">concat</span> <span class="ruby-identifier">is_alias_for</span>.<span class="ruby-identifier">aliases</span>.<span class="ruby-identifier">map</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:name</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">ignore</span>.<span class="ruby-identifier">map!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\A\[/</span> <span class="ruby-operator">?</span> <span class="ruby-regexp">/\[.*\]/</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">n</span>}
  <span class="ruby-identifier">ignore</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">method_name</span>)
  <span class="ruby-identifier">ignore</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">union</span>(<span class="ruby-identifier">ignore</span>)

  <span class="ruby-identifier">matching</span> = <span class="ruby-identifier">entries</span>.<span class="ruby-identifier">reject</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entry</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">entry</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^\w*\.?#{ignore}[$\(\s]/</span> <span class="ruby-keyword">or</span>
      <span class="ruby-identifier">entry</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\s#{ignore}\s/</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">matching</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">nil</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">matching</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;\n&quot;</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

